import { createApp } from 'vue'
import App from './App.vue'
import '@/utils/rem'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
// 引入单个图标组件
import { RefreshRight, UploadFilled,Menu,Bell,Setting,EditPen } from '@element-plus/icons-vue';
import router from "@/router";

// 创建应用
const app = createApp(App)

app.use(ElementPlus, { locale: zhCn })
// 全局注册图标组件
app.component('RefreshRight', RefreshRight);
app.component('UploadFilled', UploadFilled);
app.component('Menu', Menu);
app.component('Bell', Bell);
app.component('Setting', Setting);
app.component('EditPen', EditPen);
// 使用路由
app.use(router)

// 挂载容器
app.mount('#app')